<?php 
	namespace frontend\models;
	use yii\db\ActiveRecord;
	class Company extends ActiveRecord
	{
		public $repassword;
		public $verifyCode;
		public function rules()
		{

			return [
				[['company','location','contactor','sex','telephone','landline','username','email','password','repassword','province','city','district'],'required'],
				['repassword', 'compare', 'compareAttribute'=>'password'],
				 //验证码
	            ['verifyCode', 'required'],
	            ['verifyCode', 'captcha'],
			];

		}
	}
 ?>